package org.jeecgframework.web.tcdev.service;

import org.jeecgframework.core.common.service.CommonService;

import java.util.List;
import java.util.Map;

/**
 * Created by chenghao on 2015/4/9.
 */
public interface AdService extends CommonService {
    /**
     * 获取所有广告信息
     *
     * @param page
     * @param rows
     * @return
     */
    List<Map<String, Object>> listAll(int pid, int page, int rows);

    Integer getCount(int pid);

    List<Map<String, Object>> adPositionListAll(int page, int rows);

    Integer getPositionCount();

    Map<String, Object> getAdPosition(int id);

    void saveUpdateAdPosition(Map<String, Object> map);

    Map<String, Object> getAdInfoById(int id);

    void saveAd(Map<String, Object> map);

    void updateAd(Map<String, Object> map);

    void delAdPosition(int id);

    void delAdInfo(int id);
}
